package view;

import java.util.ArrayList;

import javax.swing.table.AbstractTableModel;

public class ComponentenTableModel extends AbstractTableModel{

	ArrayList<String> comps;
		
	public ComponentenTableModel(ArrayList<String> comps){
		this.comps = comps;
	}
	
	@Override
	public int getColumnCount() {
		return 1;
	}

	@Override
	public int getRowCount() {
		return comps.size();
	}

	@Override
	public Object getValueAt(int row, int col) {
		if(col == 0){
			return comps.get(row);
		}
		return null;
	}

}
